<% unless @cart.items.blank? %>

    <div class="col-md-12 shopping-price-table" style="padding-left: 0 !important;">
        <div class="table-responsive">
            <table class="table table-bordered">
                <tbody><tr class="table-title"><td class="cart-img"></td><td class="cart-name">PRODUCTO</td><td class="cart-edit">COLOR</td><td class="cart-price">PRECIO U.</td><td class="cart-qty">CANT.</td><td class="cart-subtotal">SUBTOTAL</td></tr>

                    <% items.each do |item| %>
                        <% get_product(item.product_id) %>

                        <tr class="table-product-info">
                            <td class="prod-img-center">
                              <div class="prod-table-img-c" style="text-align: center;"><img src="<%= @product.photo(:checkout) %>" alt="product-name"></div>
                            </td>
                            <td class="prod-name"><%= @product.model %></td>
                            <td class="prod-edit"><%= get_color_name(item.color_id) %></td>
                            <td class="prod-tot"><%= show_price @product.get_price(current_user.client.kvn_branch) %></td>
                            <td class="prod-qty"><%= item.quantity %></td>
                            <td class="prod-tot"><%= order_show_subtotal item.subtotal(current_user.client.kvn_branch) %></td>
                        </tr>
                    <% end %>

                </tbody>
            </table>
        </div>
    </div>

    <div class="col-md-12 cart-but" style="padding-left: 0 !important;">
        <div class="cart-but-left">
            <p class="bold-text" style="font-size: 20px;">Total: <span id="total-amount"><%= show_price @cart.total_amount %></span></p>
        </div>
        <div class="cart-but-right">
            <div class="clear-cart-but">

            </div>
            <br>
            <br>
        </div>
    </div>
<% else %>
    <p style="padding-left: 20px;">No hay productos seleccionados.</p>
<% end %>